package com.tencreat.common.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum ImMessageType {
    TEXT(1, "文本"),
    EMOJI(2, "表情"),
    IMG(3, "图片"),
    FILE(4, "文件"),

    READ(21, "已读"),
    RECALL(22, "撤回"),

    PING(98, "PING"),
    PONG(99, "PONG"),
    ;

    ImMessageType(int code, String value) {
        this.code = code;
        this.value = value;
    }

    @EnumValue
    private final int code;
    private final String value;

}
